import sys


if __name__ == "__main__":
    s = ""
    
    while True:
        try:
            s = input()
            while len(s) > 8:
                print(s[:8])
                s = s[8:]
            print(s + "0"*(8-len(s)))
        except:
            break
